<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ page session="false" %>


<script src="<c:url value="/resources/js/ckeditor/ckeditor.js" />"></script>


<script language="javascript">
    function selectImage(img) {//ckeditor function
        //TODO URL, MERCHANT STORE
        var image = '<c:url value="/static/${requestScope.ADMIN_STORE.code}/IMAGE/"/>' + img;
        window.opener.CKEDITOR.tools.callFunction(2, image);
        window.close();
    }
</script>


<div class="sm-ui-component">
    <h3><s:message code="label.content.images" text="Images library"/></h3>
    <br/>


    <!-- Listing grid include -->
    <c:set value="/content/images/paging" var="pagingUrl" scope="request"/>
    <c:set value="/content/contentImages" var="removeUrl" scope="request"/>
    <c:set value="/content/contentImages" var="refreshUrl" scope="request"/>
    <c:set var="componentTitleKey" value="menu.content-images" scope="request"/>
    <c:set var="canRemoveEntry" value="true" scope="request"/>

    <jsp:include page="/pages/components/images-list.jsp"></jsp:include>
    <!-- End listing grid include -->
			      			     
			      			     
